package com.gsk.service.impl;

import com.gsk.dao.BookDao;
import com.gsk.dao.impl.BookDaoImpl;
import com.gsk.service.BookService;

public class BookServiceImpl implements BookService {
    private BookDao bookDao;

    @Override
    public void save() {
        System.out.println("book service save ... ");
        bookDao.save();
    }

    //使用setter注入
    public void setBookDao(BookDaoImpl bookDao) {
        this.bookDao = bookDao;
    }

}
